# build myvpn executable when user executes "make"
#Common.c   Protocal.c UdpProxy.c

myvpn: Common.o Protocal.o UdpProxy.o
	$(CC) $(LDFLAGS) Common.o Protocal.o UdpProxy.o -o udp_proxy

Common.o: Common.c
	$(CC) -c $(CFLAGS) Common.c

Protocal.o: Protocal.c
	$(CC) -c $(CFLAGS) Protocal.c

TunDev.o: UdpProxy.c
	$(CC) -c $(CFLAGS) TunDev.c

# remove object files and executable when user executes "make clean"
clean:
	rm *.o myvpn
